@bg-color:#b7d4a8;

*{
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

// 主区域
#main{
  width: 360px;
  height: 420px;
  border: 10px solid #000;
  margin: 100px auto;
  border-radius: 20px;
  background-color: @bg-color;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
  // align-content: space-around;
  
  // 游戏区域
  #statge{
    width: 304px;
    height: 304px;
    border: 2px solid #000;
    position: relative;
    // 蛇
    #snake{
      &>div{
        width: 10px;
        height: 10px;
        background-color: rgb(87, 84, 84);
        position: absolute;
        border: 1px solid @bg-color;
      }
    }

    // 食物
    #food{
      position: absolute;
      width: 10px;
      height:10px;
      left: 80px;
      top: 180px;
      background-color: @bg-color;
      display: flex;
      justify-content: space-between;
      flex-wrap: wrap;
      &>div{
        width: 4px;
        height: 4px;
        background-color: rgb(5, 5, 5);
        transform: rotate(45deg);
      }
    }
  }
  // 分数
  #scorePanel{
    width: 300px;
    display: flex;
    justify-content: space-between;
    font: bold 20px "Courier";
  }
}